package com.lagou.ipersistence.reflection.wrapper;

import com.lagou.ipersistence.reflection.MetaObject;
import com.lagou.ipersistence.reflection.ReflectionException;

/**
 * @author Yan Jiahong
 * Created on 2020/11/22
 */
public class DefaultObjectWrapperFactory implements ObjectWrapperFactory{

    @Override
    public boolean hasWrapperFor(Object object) {
        return false;
    }

    @Override
    public ObjectWrapper getWrapperFor(MetaObject metaObject, Object object) {
        throw new ReflectionException("The DefaultObjectWrapperFactory should never be called to provide an ObjectWrapper.");
    }
}
